<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学习路径 | StudyRaid</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --bg-primary: #0d1117;
            --bg-secondary: #161b22;
            --bg-tertiary: #21262d;
            --text-primary: #f0f6fc;
            --text-secondary: #c9d1d9;
            --text-tertiary: #8b949e;
            --border-color: #30363d;
            --accent-color: #58a6ff;
            --success-color: #3fb950;
            --warning-color: #d29922;
            --danger-color: #f85149;
            --border-radius: 6px;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 导航栏样式 */
        header {
            background-color: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-right: 10px;
            color: var(--accent-color);
        }

        .nav-links {
            display: flex;
            gap: 24px;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--text-primary);
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .search-box {
            position: relative;
        }

        .search-box input {
            background-color: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            padding: 8px 12px;
            padding-left: 32px;
            color: var(--text-primary);
            width: 240px;
            font-size: 14px;
        }

        .search-box i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
        }

        /* 页面标题和筛选器 */
        .page-header {
            margin: 32px 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .page-title {
            font-size: 24px;
            font-weight: 600;
        }

        .filters {
            display: flex;
            gap: 12px;
        }

        .filter-btn {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            padding: 8px 16px;
            color: var(--text-secondary);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn:hover {
            background-color: var(--bg-tertiary);
            border-color: var(--text-tertiary);
        }

        .filter-btn.active {
            background-color: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        /* 学习路径概览 */
        .learning-path-overview {
            background-color: var(--bg-secondary);
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            padding: 24px;
            margin-bottom: 32px;
        }

        .overview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .overview-title {
            font-size: 20px;
            font-weight: 600;
        }

        .overview-stats {
            display: flex;
            gap: 24px;
        }

        .overview-stat {
            text-align: center;
        }

        .stat-value {
            font-size: 24px;
            font-weight: 600;
            color: var(--accent-color);
        }

        .stat-label {
            font-size: 14px;
            color: var(--text-tertiary);
        }

        .path-progress {
            margin-bottom: 20px;
        }

        .path-progress-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .path-progress-title {
            font-weight: 500;
        }

        .path-progress-percent {
            color: var(--text-tertiary);
            font-size: 14px;
        }

        .path-progress-bar {
            height: 8px;
            background-color: var(--bg-tertiary);
            border-radius: 4px;
            overflow: hidden;
        }

        .path-progress-fill {
            height: 100%;
            background-color: var(--success-color);
            width: 65%;
        }

        .recommended-actions {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: var(--border-radius);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
            text-align: center;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background-color: var(--accent-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #4a93e0;
        }

        .btn-secondary {
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background-color: var(--bg-secondary);
        }

        /* 学习路径网格 */
        .learning-paths-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        .path-card {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .path-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }

        .path-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .path-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background-color: rgba(88, 166, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-color);
            font-size: 20px;
        }

        .path-info {
            flex: 1;
        }

        .path-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .path-description {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .path-content {
            padding: 20px;
        }

        .path-stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .path-stat {
            text-align: center;
        }

        .path-stat-value {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .path-stat-label {
            font-size: 12px;
            color: var(--text-tertiary);
        }

        .path-progress-container {
            margin-bottom: 16px;
        }

        .path-progress-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .path-progress-bar {
            height: 6px;
            background-color: var(--bg-tertiary);
            border-radius: 3px;
            overflow: hidden;
        }

        .path-progress-fill {
            height: 100%;
            background-color: var(--success-color);
        }

        .path-actions {
            display: flex;
            gap: 8px;
        }

        .path-actions .btn {
            flex: 1;
        }

        /* 推荐课程 */
        .recommended-courses {
            margin-bottom: 40px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
        }

        .section-action {
            color: var(--accent-color);
            font-size: 14px;
            text-decoration: none;
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .course-card {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .course-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }

        .course-image {
            height: 140px;
            background-color: var(--bg-tertiary);
            position: relative;
            overflow: hidden;
        }

        .course-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .course-category {
            position: absolute;
            top: 12px;
            left: 12px;
            background-color: rgba(13, 17, 23, 0.8);
            color: var(--text-secondary);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .course-content {
            padding: 16px;
        }

        .course-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .course-description {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            color: var(--text-tertiary);
            font-size: 12px;
            margin-bottom: 16px;
        }

        .course-actions {
            display: flex;
            gap: 8px;
        }

        .course-actions .btn {
            flex: 1;
        }

        /* 页脚 */
        footer {
            border-top: 1px solid var(--border-color);
            padding: 24px 0;
            margin-top: 40px;
            text-align: center;
            color: var(--text-tertiary);
            font-size: 14px;
        }

        /* 响应式设计 */
        @media (max-width: 1024px) {
            .learning-paths-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .navbar {
                flex-direction: column;
                gap: 16px;
            }

            .nav-links {
                order: 3;
                width: 100%;
                justify-content: center;
            }

            .search-box input {
                width: 200px;
            }

            .page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }

            .filters {
                flex-wrap: wrap;
            }

            .overview-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }

            .overview-stats {
                width: 100%;
                justify-content: space-between;
            }

            .learning-paths-grid {
                grid-template-columns: 1fr;
            }

            .recommended-actions {
                flex-direction: column;
            }

            .path-actions {
                flex-direction: column;
            }

            .courses-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>

<body>
    <!-- 导航栏 -->
    <header>
        <div class="container">
            <nav class="navbar">
                <a href="index.html" class="logo">
                    <i class="fas fa-graduation-cap"></i>
                    StudyRaid
                </a>

                <div class="nav-links">
                    <a href="my-courses.html">我的课程</a>
                    <a href="explore.html">发现</a>
                    <a href="learning-path.html" class="active">学习路径</a>
                    <a href="progress-tracking.html">进度追踪</a>
                </div>

                <div class="user-menu">
                    <div class="search-box">
                        <i class="fas fa-search"></i>
                        <input type="text" placeholder="搜索课程...">
                    </div>
                    <div class="user-avatar">JS</div>
                </div>
            </nav>
        </div>
    </header>

    <!-- 主要内容 -->
    <main class="container">
        <div class="page-header">
            <h1 class="page-title">学习路径</h1>
            <div class="filters">
                <button class="filter-btn active">全部</button>
                <button class="filter-btn">前端开发</button>
                <button class="filter-btn">后端开发</button>
                <button class="filter-btn">数据科学</button>
                <button class="filter-btn">移动开发</button>
            </div>
        </div>

        <!-- 学习路径概览 -->
        <div class="learning-path-overview">
            <div class="overview-header">
                <h2 class="overview-title">我的学习路径</h2>
                <div class="overview-stats">
                    <div class="overview-stat">
                        <div class="stat-value">3</div>
                        <div class="stat-label">进行中</div>
                    </div>
                    <div class="overview-stat">
                        <div class="stat-value">2</div>
                        <div class="stat-label">已完成</div>
                    </div>
                    <div class="overview-stat">
                        <div class="stat-value">65%</div>
                        <div class="stat-label">平均进度</div>
                    </div>
                </div>
            </div>

            <div class="path-progress">
                <div class="path-progress-header">
                    <div class="path-progress-title">前端开发工程师路径</div>
                    <div class="path-progress-percent">65%</div>
                </div>
                <div class="path-progress-bar">
                    <div class="path-progress-fill"></div>
                </div>
            </div>

            <div class="recommended-actions">
                <button class="btn btn-primary">
                    <i class="fas fa-play"></i> 继续学习
                </button>
                <button class="btn btn-secondary">
                    <i class="fas fa-plus"></i> 探索新路径
                </button>
            </div>
        </div>

        <!-- 学习路径网格 -->
        <div class="learning-paths-grid">
            <!-- 路径卡片 1 -->
            <div class="path-card">
                <div class="path-header">
                    <div class="path-icon">
                        <i class="fab fa-js"></i>
                    </div>
                    <div class="path-info">
                        <h3 class="path-title">前端开发工程师</h3>
                        <p class="path-description">从零开始成为前端开发专家</p>
                    </div>
                </div>
                <div class="path-content">
                    <div class="path-stats">
                        <div class="path-stat">
                            <div class="path-stat-value">12</div>
                            <div class="path-stat-label">课程</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">120</div>
                            <div class="path-stat-label">小时</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">中级</div>
                            <div class="path-stat-label">难度</div>
                        </div>
                    </div>
                    <div class="path-progress-container">
                        <div class="path-progress-info">
                            <span>进度</span>
                            <span>65%</span>
                        </div>
                        <div class="path-progress-bar">
                            <div class="path-progress-fill" style="width: 65%"></div>
                        </div>
                    </div>
                    <div class="path-actions">
                        <button class="btn btn-primary">继续学习</button>
                        <button class="btn btn-secondary">查看详情</button>
                    </div>
                </div>
            </div>

            <!-- 路径卡片 2 -->
            <div class="path-card">
                <div class="path-header">
                    <div class="path-icon">
                        <i class="fab fa-python"></i>
                    </div>
                    <div class="path-info">
                        <h3 class="path-title">Python 数据科学家</h3>
                        <p class="path-description">掌握数据分析和机器学习技能</p>
                    </div>
                </div>
                <div class="path-content">
                    <div class="path-stats">
                        <div class="path-stat">
                            <div class="path-stat-value">10</div>
                            <div class="path-stat-label">课程</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">90</div>
                            <div class="path-stat-label">小时</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">中级</div>
                            <div class="path-stat-label">难度</div>
                        </div>
                    </div>
                    <div class="path-progress-container">
                        <div class="path-progress-info">
                            <span>进度</span>
                            <span>30%</span>
                        </div>
                        <div class="path-progress-bar">
                            <div class="path-progress-fill" style="width: 30%"></div>
                        </div>
                    </div>
                    <div class="path-actions">
                        <button class="btn btn-primary">继续学习</button>
                        <button class="btn btn-secondary">查看详情</button>
                    </div>
                </div>
            </div>

            <!-- 路径卡片 3 -->
            <div class="path-card">
                <div class="path-header">
                    <div class="path-icon">
                        <i class="fab fa-react"></i>
                    </div>
                    <div class="path-info">
                        <h3 class="path-title">React 全栈开发</h3>
                        <p class="path-description">前端与后端全栈开发技能</p>
                    </div>
                </div>
                <div class="path-content">
                    <div class="path-stats">
                        <div class="path-stat">
                            <div class="path-stat-value">8</div>
                            <div class="path-stat-label">课程</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">80</div>
                            <div class="path-stat-label">小时</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">高级</div>
                            <div class="path-stat-label">难度</div>
                        </div>
                    </div>
                    <div class="path-progress-container">
                        <div class="path-progress-info">
                            <span>进度</span>
                            <span>80%</span>
                        </div>
                        <div class="path-progress-bar">
                            <div class="path-progress-fill" style="width: 80%"></div>
                        </div>
                    </div>
                    <div class="path-actions">
                        <button class="btn btn-primary">继续学习</button>
                        <button class="btn btn-secondary">查看详情</button>
                    </div>
                </div>
            </div>

            <!-- 路径卡片 4 -->
            <div class="path-card">
                <div class="path-header">
                    <div class="path-icon">
                        <i class="fas fa-mobile-alt"></i>
                    </div>
                    <div class="path-info">
                        <h3 class="path-title">移动应用开发</h3>
                        <p class="path-description">React Native 与 Flutter 开发</p>
                    </div>
                </div>
                <div class="path-content">
                    <div class="path-stats">
                        <div class="path-stat">
                            <div class="path-stat-value">6</div>
                            <div class="path-stat-label">课程</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">70</div>
                            <div class="path-stat-label">小时</div>
                        </div>
                        <div class="path-stat">
                            <div class="path-stat-value">中级</div>
                            <div class="path-stat-label">难度</div>
                        </div>
                    </div>
                    <div class="path-progress-container">
                        <div class="path-progress-info">
                            <span>进度</span>
                            <span>0%</span>
                        </div>
                        <div class="path-progress-bar">
                            <div class="path-progress-fill" style="width: 0%"></div>
                        </div>
                    </div>
                    <div class="path-actions">
                        <button class="btn btn-primary">开始学习</button>
                        <button class="btn btn-secondary">查看详情</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 推荐课程 -->
        <div class="recommended-courses">
            <div class="section-header">
                <h2 class="section-title">推荐课程</h2>
                <a href="index.html" class="section-action">查看全部</a>
            </div>

            <div class="courses-grid">
                <!-- 推荐课程 1 -->
                <div class="course-card">
                    <div class="course-image">
                        <img src="https://placehold.co/300x160/21262d/8b949e?text=TypeScript" alt="TypeScript 进阶">
                        <div class="course-category">前端开发</div>
                    </div>
                    <div class="course-content">
                        <h3 class="course-title">TypeScript 进阶</h3>
                        <p class="course-description">深入学习TypeScript，提升JavaScript开发体验。</p>
                        <div class="course-meta">
                            <span><i class="far fa-clock"></i> 10小时</span>
                            <span><i class="fas fa-signal"></i> 中级</span>
                        </div>
                        <div class="course-actions">
                            <a href="#" class="btn btn-primary">开始学习</a>
                            <button class="btn btn-secondary"><i class="far fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>

                <!-- 推荐课程 2 -->
                <div class="course-card">
                    <div class="course-image">
                        <img src="https://placehold.co/300x160/21262d/8b949e?text=Vue.js" alt="Vue.js 实战开发">
                        <div class="course-category">前端开发</div>
                    </div>
                    <div class="course-content">
                        <h3 class="course-title">Vue.js 实战开发</h3>
                        <p class="course-description">从基础到高级，掌握Vue.js框架及其生态系统。</p>
                        <div class="course-meta">
                            <span><i class="far fa-clock"></i> 14小时</span>
                            <span><i class="fas fa-signal"></i> 中级</span>
                        </div>
                        <div class="course-actions">
                            <a href="#" class="btn btn-primary">开始学习</a>
                            <button class="btn btn-secondary"><i class="far fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>

                <!-- 推荐课程 3 -->
                <div class="course-card">
                    <div class="course-image">
                        <img src="https://placehold.co/300x160/21262d/8b949e?text=Next.js" alt="Next.js 全栈开发">
                        <div class="course-category">前端开发</div>
                    </div>
                    <div class="course-content">
                        <h3 class="course-title">Next.js 全栈开发</h3>
                        <p class="course-description">使用Next.js构建现代化全栈Web应用。</p>
                        <div class="course-meta">
                            <span><i class="far fa-clock"></i> 16小时</span>
                            <span><i class="fas fa-signal"></i> 高级</span>
                        </div>
                        <div class="course-actions">
                            <a href="#" class="btn btn-primary">开始学习</a>
                            <button class="btn btn-secondary"><i class="far fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>

                <!-- 推荐课程 4 -->
                <div class="course-card">
                    <div class="course-image">
                        <img src="https://placehold.co/300x160/21262d/8b949e?text=Webpack" alt="Webpack 构建工具">
                        <div class="course-category">前端开发</div>
                    </div>
                    <div class="course-content">
                        <h3 class="course-title">Webpack 构建工具</h3>
                        <p class="course-description">掌握现代前端构建工具Webpack的使用。</p>
                        <div class="course-meta">
                            <span><i class="far fa-clock"></i> 8小时</span>
                            <span><i class="fas fa-signal"></i> 中级</span>
                        </div>
                        <div class="course-actions">
                            <a href="#" class="btn btn-primary">开始学习</a>
                            <button class="btn btn-secondary"><i class="far fa-bookmark"></i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <p>© 2023 StudyRaid. 保留所有权利。</p>
            <p>采用 GitHub 深色风格设计</p>
        </div>
    </footer>

    <script>
        // 筛选按钮交互
        document.querySelectorAll('.filter-btn').forEach(button => {
            button.addEventListener('click', function () {
                document.querySelectorAll('.filter-btn').forEach(btn => {
                    btn.classList.remove('active');
                });
                this.classList.add('active');

                // 这里可以添加筛选学习路径的逻辑
                console.log(`筛选条件: ${this.textContent}`);
            });
        });

        // 收藏按钮交互
        document.querySelectorAll('.btn-secondary').forEach(button => {
            if (button.querySelector('.fa-bookmark')) {
                button.addEventListener('click', function () {
                    const icon = this.querySelector('i');
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.style.color = 'var(--accent-color)';
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.style.color = '';
                    }
                });
            }
        });

        // 继续学习按钮功能
        document.querySelectorAll('.btn-primary').forEach(button => {
            if (button.textContent.includes('继续学习') || button.textContent.includes('开始学习')) {
                button.addEventListener('click', function () {
                    const pathTitle = this.closest('.path-card').querySelector('.path-title').textContent;
                    alert(`开始学习: ${pathTitle}`);
                    // 实际应用中这里会跳转到对应的学习页面
                });
            }
        });

        // 查看详情按钮功能
        document.querySelectorAll('.btn-secondary').forEach(button => {
            if (button.textContent.includes('查看详情')) {
                button.addEventListener('click', function () {
                    const pathTitle = this.closest('.path-card').querySelector('.path-title').textContent;
                    alert(`查看详情: ${pathTitle}`);
                    // 实际应用中这里会跳转到路径详情页面
                });
            }
        });

        // 搜索功能
        const searchInput = document.querySelector('.search-box input');
        searchInput.addEventListener('input', function () {
            const searchTerm = this.value.toLowerCase();
            const pathCards = document.querySelectorAll('.path-card');

            pathCards.forEach(card => {
                const title = card.querySelector('.path-title').textContent.toLowerCase();
                const description = card.querySelector('.path-description').textContent.toLowerCase();

                if (title.includes(searchTerm) || description.includes(searchTerm)) {
                    card.style.display = 'block';
                } else {
                    card.style.display = 'none';
                }
            });
        });
    </script>
</body>

</html>